import Layout from '@/layout'
export default
    {
        path: '/super',
        component: Layout,
        name: 'super',
        meta: { title: '车辆管理', icon: 'example' },
        children: [
            {
                path: 'car',
                name: 'car',
                component: () => import('@/views/companyset/informaction/car/index'),
                meta: { title: '车辆信息', icon: 'table' }
            },
            {
                path: 'usecar_apply',
                name: 'usecar_apply',
                component: () => import('@/views/super/caruse/apply/index'),
                meta: { title: '车辆使用', icon: 'table' }
            },
            {
                path: 'equipment_oil',
                name: 'equipment_oil',
                component: () => import('@/views/super/run/oil/index'),
                meta: { title: '车辆加油', icon: 'table' }
            },
            {
                path: 'repair_apply',
                name: 'repair_apply',
                component: () => import('@/views/super/repair/apply/index'),
                meta: { title: '维修保养', icon: 'table' }
            },
            {
                path: 'vehicle',
                name: 'vehicle',
                component: () => import('@/views/super/vehicle/index'),
                meta: { title: '出车单', icon: 'table' , public: true}
            },
            {
                path: 'carlog',
                name: 'carlog',
                component: () => import('@/views/companyset/informaction/carlog/index'),
                meta: { title: '车辆历史', icon: 'table' }
            },
            {
                path: 'trace',
                name: 'trace',
                component: () => import('@/views/super/mapsuper/trace/index'),
                meta: { title: '车辆轨迹', icon: 'table' }
            },
            {
                path: 'obd',
                name: 'obd',
                component: () => import('@/views/companyset/informaction/obd/index'),
                meta: { title: 'OBD设备管理', icon: 'table' }
            },
            {
                path: 'rangeset',
                name: 'rangeset',
                component: () => import('@/views/super/mapsuper/rangeset/index'),
                meta: { title: '电子围栏范围设置', icon: 'table' }
            },
            {
                path: 'violation',
                name: 'violation',
                component: () => import('@/views/super/mapsuper/violation/index'),
                meta: { title: '异常统计', icon: 'table' }
            },
            {
                path: 'rangeform',
                name: 'rangeform',
                hidden: true,
                component: () => import('@/views/super/mapsuper/rangeform/index'),
                meta: { title: '围栏新增修改', icon: 'table', public: true }
            },
        ],
        childrenBAK: [
            {
                path: 'caruse',
                name: 'caruse',
                component: () => import('@/views/super/caruse/index'),
                meta: { title: '车辆使用', icon: 'tree' },
                children: [
                    {
                        path: 'apply',
                        name: 'caruse_apply',
                        component: () => import('@/views/super/caruse/apply/index'),
                        meta: { title: '用车申请', icon: 'table' }
                    },
                    {
                        path: 'inspect',
                        name: 'super_inspect',
                        component: () => import('@/views/super/caruse/inspect/index'),
                        meta: { title: '用车审核', icon: 'table' }
                    },
                    {
                        path: 'dispatch',
                        name: 'dispatch',
                        component: () => import('@/views/super/caruse/dispatch/index'),
                        meta: { title: '用车调度', icon: 'table' }
                    },
                ]
            },

            {
                path: 'equipment',
                name: 'super_equipment',
                component: () => import('@/views/super/run/index'),
                meta: { title: '车辆运行维护', icon: 'tree' },
                children: [
                    {
                        path: 'equipment_oil',
                        name: 'equipment_oil',
                        component: () => import('@/views/super/run/oil/index'),
                        meta: { title: '车辆加油', icon: 'table' }
                    },
                ]
            },

            {
                path: 'repair',
                name: 'repair',
                component: () => import('@/views/super/repair/index'),
                meta: { title: '车辆维修保养', icon: 'tree' },
                children: [
                    {
                        path: 'repair_apply',
                        name: 'repair_apply',
                        component: () => import('@/views/super/repair/apply/index'),
                        meta: { title: '车辆维修保养申请', icon: 'table' }
                    },
                    {
                        path: 'inspect',
                        name: 'repair_inspect',
                        component: () => import('@/views/super/repair/inspect/index'),
                        meta: { title: '车辆维修保养审核', icon: 'table' }
                    },
                ]
            }
            ,

            {
                path: 'mapsuper',
                name: 'mapsuper',
                component: () => import('@/views/super/mapsuper/index'),
                meta: { title: '电子监督', icon: 'tree' },
                children: [
                    {
                        path: 'violation',
                        name: 'violation',
                        component: () => import('@/views/super/mapsuper/violation/index'),
                        meta: { title: '异常统计', icon: 'table' }
                    },
                    // {
                    //     path: 'monitor',
                    //     name: 'monitor',
                    //     component: () => import('@/views/super/mapsuper/monitor/index'),
                    //     meta: { title: '实时监控', icon: 'table' }
                    // },
                    // {
                    //     path: 'traffic',
                    //     name: 'traffic',
                    //     component: () => import('@/views/super/mapsuper/traffic/index'),
                    //     meta: { title: '轨迹查询', icon: 'table' }
                    // },
                    {
                        path: 'trace',
                        name: 'trace',
                        component: () => import('@/views/super/mapsuper/trace/index'),
                        meta: { title: '轨迹监控', icon: 'table' }
                    },
                    {
                        path: 'rangeset',
                        name: 'rangeset',
                        component: () => import('@/views/super/mapsuper/rangeset/index'),
                        meta: { title: '电子围栏范围设置', icon: 'table' }
                    },
                    {
                        path: 'rangeform',
                        name: 'rangeform',
                        hidden: true,
                        component: () => import('@/views/super/mapsuper/rangeform/index'),
                        meta: { title: '围栏新增修改', icon: 'table' }
                    },
                ]
            }
        ]
    }